<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<html>
<head>
    <script type="text/javascript" src="resource/js/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="/resource/js/bootstrap.js"></script>
    <link rel="stylesheet" href="/resource/css/bootstrap.css">
    <link rel="stylesheet" href="resource/css/index3.css" type="text/css">
    <script type="text/javascript" src=resource/js/My97DatePicker/WdatePicker.js></script>
    <script type="text/javascript" src="/resource/js/DateUtil.js"></script>
    <title>基金列表</title>
</head>
<body>
<font size="30">基金列表</font><br>
当前用户:<a href="javascript:getgr()">${user.phone}</a><br>
<input type="button" value="登出" onclick="xh()">
        <form action="${pageContext.request.contextPath}/list" method="post">

        </form>
<table>
    <tr>
        <td>id</td>
        <td>名称</td>
        <td>类型</td>
        <td>价格</td>
        <td>基金经理</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${info.list}" var="each">
        <tr>
            <td>${each.mid}</td>
            <td>${each.name}</td>
            <td>${each.typename}</td>
            <td>${each.price}</td>
            <td>${each.managename}</td>
            <td>
                <input type="button" value="详情" onclick="xq(${each.mid})">
                <input type="button" value="购买" onclick="add(${each.mid})">
            </td>
        </tr>
    </c:forEach>
</table>
<input type="button" value="导出pdf" onclick="expo(0)">
<input type="button" value="预览pdf" onclick="expo(1)">
<script>
    function add(id){
        location="insert?id="+id;
    }
    function xq(id){
        location="xq?id="+id;
    }
    function getgr(){
        location="grzx";
    }

    function expo(mode){
        window.open("expo?mode="+mode);
    }
    function xh(){
        location="xh";
    }
</script>
</body>
<jsp:include page="/resource/page/pages3.jsp"></jsp:include>
</html>